﻿#include "data_type.h"
Vector::Vector(vector<double>& _data_list)
{
	int i = 0;
	while (i < _data_list.size())
	{
		data_list.push_back(_data_list[i]);
		i ++;
	}

	_size = i;
}
Vector::Vector(const Vector& _vector)
{
	int i = 0;
	while ( i < _vector._size )
	{
		data_list.push_back(_vector.element(i));
		i ++;
	}

	_size = _vector._size;
}
double Vector::element(int i) const
{
	return data_list[i];
}
vector<double> Vector::get_data_list()
{
	return data_list;
}
